import request from '@/utils/request'

// 查询客户备注列表
export function listCustomerinfomark(query) {
  return request({
    url: '/CustomerinfoMain/customerinfomark/list',
    method: 'get',
    params: query
  })
}

// 查询客户备注详细
export function getCustomerinfomark(id) {
  return request({
    url: '/CustomerinfoMain/customerinfomark/' + id,
    method: 'get'
  })
}

// 新增客户备注
export function addCustomerinfomark(data) {
  return request({
    url: '/CustomerinfoMain/customerinfomark',
    method: 'post',
    data: data
  })
}

// 修改客户备注
export function updateCustomerinfomark(data) {
  return request({
    url: '/CustomerinfoMain/customerinfomark',
    method: 'put',
    data: data
  })
}

// 删除客户备注
export function delCustomerinfomark(id) {
  return request({
    url: '/CustomerinfoMain/customerinfomark/' + id,
    method: 'delete'
  })
}
